package com.example.profile;

import com.example.profile.controller.PropertiesController;
import lombok.val;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

import java.util.Properties;

@SpringBootApplication
public class  ProfileApplication {

    public static void main(String[] args) {
        ApplicationContext context =
                SpringApplication.run(ProfileApplication.class, args);
        PropertiesController propertiesController =
                context.getBean(PropertiesController.class);
        propertiesController.readYml();

        propertiesController.readList();


    }

}
